<form method="post" action="" id="tbl_base_moduleForm">
<table align="center" class="table2">
	<tr><td colspan='3'>
	{$error}
	</td></tr>
	<tr>
		<th align="right">
			模块名:
		</th>
		<td width="160px">
			<input type="text" id="txt_module_name" name="txt_module_name" value={$modelInfo.module_name} />
			<input type="hidden" name="oldModuleGroupID" id="oldModuleGroupID" value="{$modelInfo.module_group_id}"/>
		</td>
		<td>
			<div id="txt_module_name_tip"></div>
		</td>
	</tr>
	<tr>
		<th align="right">
			模块唯一标识:
		</th>
		<td>
			<input type="text" readonly='readonly' id="txt_identity_name" name="txt_identity_name" value={$modelInfo.identity_name} />
		</td>
		<td>
			<div id="txt_identity_name_tip"></div>
		</td>
	</tr>
	<tr>
		<th align="right">
			模块访问路径:
		</th>
		<td>
			<input type="text" id="txt_url" name="txt_url" value={$modelInfo.url} />
		</td>
		<td>
			<div id="txt_url_tip"></div>
		</td>
	</tr>
	<tr>
    	<th>模块状态:</th>
	    <td>
	    <select name="moduleState" id="moduleState">
	    	<option value='1'>启用</option>
	    	<option value='0'>禁用</option>
	    </select>
		</td>
	</tr>
	<tr>
    	<th>模块是否显示:</th>
	    <td>
	    <select name="moduleIsShow" id="moduleIsShow">
	    	<option value='1'>是</option>
	    	<option value='0' {if $modelInfo.is_show eq 0}selected="selected"{/if}>否</option>
	    </select>
		</td>
	</tr>
	<tr>
    	<th>所属模块组:</th>
    	<td>
    	<select name="newModuleGroupID" id="newModuleGroupID">
    	{foreach from=$allGroup item=oneGroup}
    		{if $oneGroup.module_group_id == $modelInfo.module_group_id}
    			<option selected="selected" value="{$oneGroup.module_group_id}">{$oneGroup.group_name}</option>
    		{else}
    			<option value="{$oneGroup.module_group_id}">{$oneGroup.group_name}</option>
    		{/if}
    	{/foreach}
    	</select>
		</td>
	</tr>
	<tr>
		<th align="right">
			模块描述:
		</th>
		<td>
			<textarea cols="20" rows="3" id="txt_description" name="txt_description">{$modelInfo.description}</textarea>
		</td>
		<td>
		</td>
	</tr>
	<tr>
		<th></th>
		<td colspan="2">
		<div style="margin-right:10px;" class="left"><a class="buttonStyle" onclick="{literal}if($.formValidator.pageIsValid()){document.getElementById('tbl_base_moduleForm').submit();}{/literal}"><span></span>保存</a></div>
    	<div class="left"><a class="buttonStyle" href="{$manageDomain}moduleManage/show/"><span></span>返回</a></div>
		</td>
	</tr>
</table>
</form>
